require("../css/advertising.less")

document.ready(function(){
     // 获取dom
     let countNum=document.querySelector("#countNum")
     let countdown=document.querySelector(".count-down")
     let count=5
     //设置定时器
     let timeID=window.setInterval(function(){
       count--
       if(count==0){
         window. clearInterval(timeID)
 
          window. location.href="./login.html"
           return
       }
         countNum.textContent=count
     },1000)
     //点击跳转登录页面
     countdown.addEventListener("click",function(){
        window. location.href="./login.html"
     })
})

   
    
   